<?php


/**
 * @file
 * footer_reseaux_sociaux.features.menu_links.inc
 */

/**
 * Implements hook_menu_default_menu_links().
 */
function footer_reseaux_sociaux_menu_default_menu_links() {
  $menu_links = array();

  // Exported menu link: management:admin/config/fblikebutton
  $menu_links['management:admin/config/fblikebutton'] = array(
    'menu_name' => 'management',
    'link_path' => 'admin/config/fblikebutton',
    'router_path' => 'admin/config/fblikebutton',
    'link_title' => 'FB Like Button',
    'options' => array(
      'attributes' => array(
        'title' => 'Configure the Facebook Like button',
      ),
    ),
    'module' => 'system',
    'hidden' => 0,
    'external' => 0,
    'has_children' => 1,
    'expanded' => 0,
    'weight' => -20,
    'parent_path' => 'admin/config',
  );
  // Exported menu link: management:admin/config/services/google-plusone
  $menu_links['management:admin/config/services/google-plusone'] = array(
    'menu_name' => 'management',
    'link_path' => 'admin/config/services/google-plusone',
    'router_path' => 'admin/config/services/google-plusone',
    'link_title' => 'Google +1 button',
    'options' => array(
      'attributes' => array(
        'title' => 'Configure Google Plus One button settings',
      ),
    ),
    'module' => 'system',
    'hidden' => 0,
    'external' => 0,
    'has_children' => 0,
    'expanded' => 0,
    'weight' => 0,
    'parent_path' => 'admin/config/services',
  );
  // Exported menu link: management:admin/config/services/tweetbutton
  $menu_links['management:admin/config/services/tweetbutton'] = array(
    'menu_name' => 'management',
    'link_path' => 'admin/config/services/tweetbutton',
    'router_path' => 'admin/config/services/tweetbutton',
    'link_title' => 'Tweet Button',
    'options' => array(
      'attributes' => array(
        'title' => 'Configure the look and behavior of the Tweet Button appears on the site.',
      ),
    ),
    'module' => 'system',
    'hidden' => 0,
    'external' => 0,
    'has_children' => 0,
    'expanded' => 0,
    'weight' => 0,
    'parent_path' => 'admin/config/services',
  );
  // Translatables
  // Included for use with string extractors like potx.
  t('FB Like Button');
  t('Google +1 button');
  t('Tweet Button');


  return $menu_links;
}




function theme_footer_reseaux_sociaux($variables) {
	// Récupère le formulaire dans les variables.
	$rs = $variables['menu_links'];
	
	// Génère le HTML du tableau et insère les différents champs
	// du formulaire aux bons endroits.
	$output = '<table><tr>';
	$output .= '<tr><td>' . drupal_render($rs['FB Like Button']) . '</td>';
	$output .= '<td>' . drupal_render($rs['Google +1 button']) . '</td>';
	$output .= '<td>' . drupal_render($rs['Tweet Button']) . '</td></tr>';
	$output .= '</tr></table>';
	return $output;
}

function footer_reseaux_sociaux_theme($existing, $type, $theme, $path) {
	return array(
			'footer_reseaux_sociaux' => array(
					'template' => 'footer_reseaux_sociaux',
					'render element' => 'form',
			)
	);
}
